import request from '@/utils/request.js'

// 活动列表 post  put 用data        get params
export function actList(query) {
    return request({
        url: '/pc/activity/list',
        method: 'post',
        data: query
    })
}

// 活动类型
export function actCategory(query) {
    return request({
        url: '/pc/activity/category',
        method: 'get',
        params: query
    })
}

// 活动详情
export function actDetail(query) {
    return request({
        url: '/pc/activity/detail',
        method: 'post',
        data: query
    })
}

// 活动报名
export function actApplication(query) {
    return request({
        url: '/api/activity/application',
        method: 'post',
        data: query
    })
}